<!DOCTYPE html>
<html lang="en-US">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="language" content="en" />
        <link href="./assets/ffd55088/css/bootstrap.css" rel="stylesheet">
<link href="./assets/5cf9384a/solarized_light.css" rel="stylesheet">
<link href="./assets/6c54116e/style.css" rel="stylesheet">
<script src="./assets/a44cef0f/jquery.js"></script>
<script src="./assets/ffd55088/js/bootstrap.js"></script>
<script src="./assets/8ac4e28a/jssearch.js"></script>    <title>Component, yii\base\Component - Yii Framework 2.0 API Documentation</title>
</head>
<body>

<div class="wrap">
    <nav id="w3125" class="navbar-inverse navbar-fixed-top navbar" role="navigation"><div class="navbar-header"><button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#w3125-collapse"><span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span></button><a class="navbar-brand" href="./index.html">Yii Framework 2.0 API Documentation</a></div><div id="w3125-collapse" class="collapse navbar-collapse"><ul id="w3126" class="navbar-nav nav"><li><a href="./index.html">Class reference</a></li>
<li class="dropdown"><a class="dropdown-toggle" href="#" data-toggle="dropdown">Extensions <b class="caret"></b></a><ul id="w3127" class="dropdown-menu"><li><a href="./ext-apidoc-index.html" tabindex="-1">apidoc</a></li>
<li><a href="./ext-authclient-index.html" tabindex="-1">authclient</a></li>
<li><a href="./ext-bootstrap-index.html" tabindex="-1">bootstrap</a></li>
<li><a href="./ext-codeception-index.html" tabindex="-1">codeception</a></li>
<li><a href="./ext-debug-index.html" tabindex="-1">debug</a></li>
<li><a href="./ext-elasticsearch-index.html" tabindex="-1">elasticsearch</a></li>
<li><a href="./ext-faker-index.html" tabindex="-1">faker</a></li>
<li><a href="./ext-gii-index.html" tabindex="-1">gii</a></li>
<li><a href="./ext-imagine-index.html" tabindex="-1">imagine</a></li>
<li><a href="./ext-jui-index.html" tabindex="-1">jui</a></li>
<li><a href="./ext-mongodb-index.html" tabindex="-1">mongodb</a></li>
<li><a href="./ext-redis-index.html" tabindex="-1">redis</a></li>
<li><a href="./ext-smarty-index.html" tabindex="-1">smarty</a></li>
<li><a href="./ext-sphinx-index.html" tabindex="-1">sphinx</a></li>
<li><a href="./ext-swiftmailer-index.html" tabindex="-1">swiftmailer</a></li>
<li><a href="./ext-twig-index.html" tabindex="-1">twig</a></li></ul></li>
<li><a href="./guide-README.html">Guide</a></li></ul><div class="navbar-form navbar-left" role="search">
  <div class="form-group">
    <input id="searchbox" type="text" class="form-control" placeholder="Search">
  </div>
</div>
</div></nav>
    <div id="search-resultbox" style="display: none;" class="modal-content">
        <ul id="search-results">
        </ul>
    </div>

    
<div class="row">
    <div class="col-md-3">
                <div id="navigation" class="list-group"><a class="list-group-item" href="#navigation-3094" data-toggle="collapse" data-parent="#navigation">Not namespaced classes <b class="caret"></b></a><div id="navigation-3094" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii.html">Yii</a></div>
<a class="list-group-item" href="#navigation-3095" data-toggle="collapse" data-parent="#navigation">yii <b class="caret"></b></a><div id="navigation-3095" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-baseyii.html">BaseYii</a></div>
<a class="list-group-item active" href="#navigation-3096" data-toggle="collapse" data-parent="#navigation">yii\base <b class="caret"></b></a><div id="navigation-3096" class="submenu panel-collapse collapse in"><a class="list-group-item" href="./yii-base-action.html">Action</a>
<a class="list-group-item" href="./yii-base-actionevent.html">ActionEvent</a>
<a class="list-group-item" href="./yii-base-actionfilter.html">ActionFilter</a>
<a class="list-group-item" href="./yii-base-application.html">Application</a>
<a class="list-group-item" href="./yii-base-arrayaccesstrait.html">ArrayAccessTrait</a>
<a class="list-group-item" href="./yii-base-arrayable.html">Arrayable</a>
<a class="list-group-item" href="./yii-base-arrayabletrait.html">ArrayableTrait</a>
<a class="list-group-item" href="./yii-base-behavior.html">Behavior</a>
<a class="list-group-item" href="./yii-base-bootstrapinterface.html">BootstrapInterface</a>
<a class="list-group-item active" href="./yii-base-component.html">Component</a>
<a class="list-group-item" href="./yii-base-configurable.html">Configurable</a>
<a class="list-group-item" href="./yii-base-controller.html">Controller</a>
<a class="list-group-item" href="./yii-base-dynamicmodel.html">DynamicModel</a>
<a class="list-group-item" href="./yii-base-errorexception.html">ErrorException</a>
<a class="list-group-item" href="./yii-base-errorhandler.html">ErrorHandler</a>
<a class="list-group-item" href="./yii-base-event.html">Event</a>
<a class="list-group-item" href="./yii-base-exception.html">Exception</a>
<a class="list-group-item" href="./yii-base-exitexception.html">ExitException</a>
<a class="list-group-item" href="./yii-base-inlineaction.html">InlineAction</a>
<a class="list-group-item" href="./yii-base-invalidcallexception.html">InvalidCallException</a>
<a class="list-group-item" href="./yii-base-invalidconfigexception.html">InvalidConfigException</a>
<a class="list-group-item" href="./yii-base-invalidparamexception.html">InvalidParamException</a>
<a class="list-group-item" href="./yii-base-invalidrouteexception.html">InvalidRouteException</a>
<a class="list-group-item" href="./yii-base-invalidvalueexception.html">InvalidValueException</a>
<a class="list-group-item" href="./yii-base-model.html">Model</a>
<a class="list-group-item" href="./yii-base-modelevent.html">ModelEvent</a>
<a class="list-group-item" href="./yii-base-module.html">Module</a>
<a class="list-group-item" href="./yii-base-notsupportedexception.html">NotSupportedException</a>
<a class="list-group-item" href="./yii-base-object.html">Object</a>
<a class="list-group-item" href="./yii-base-request.html">Request</a>
<a class="list-group-item" href="./yii-base-response.html">Response</a>
<a class="list-group-item" href="./yii-base-security.html">Security</a>
<a class="list-group-item" href="./yii-base-theme.html">Theme</a>
<a class="list-group-item" href="./yii-base-unknownclassexception.html">UnknownClassException</a>
<a class="list-group-item" href="./yii-base-unknownmethodexception.html">UnknownMethodException</a>
<a class="list-group-item" href="./yii-base-unknownpropertyexception.html">UnknownPropertyException</a>
<a class="list-group-item" href="./yii-base-userexception.html">UserException</a>
<a class="list-group-item" href="./yii-base-view.html">View</a>
<a class="list-group-item" href="./yii-base-viewcontextinterface.html">ViewContextInterface</a>
<a class="list-group-item" href="./yii-base-viewevent.html">ViewEvent</a>
<a class="list-group-item" href="./yii-base-viewrenderer.html">ViewRenderer</a>
<a class="list-group-item" href="./yii-base-widget.html">Widget</a></div>
<a class="list-group-item" href="#navigation-3097" data-toggle="collapse" data-parent="#navigation">yii\behaviors <b class="caret"></b></a><div id="navigation-3097" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-behaviors-attributebehavior.html">AttributeBehavior</a>
<a class="list-group-item" href="./yii-behaviors-blameablebehavior.html">BlameableBehavior</a>
<a class="list-group-item" href="./yii-behaviors-sluggablebehavior.html">SluggableBehavior</a>
<a class="list-group-item" href="./yii-behaviors-timestampbehavior.html">TimestampBehavior</a></div>
<a class="list-group-item" href="#navigation-3098" data-toggle="collapse" data-parent="#navigation">yii\caching <b class="caret"></b></a><div id="navigation-3098" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-caching-apccache.html">ApcCache</a>
<a class="list-group-item" href="./yii-caching-arraycache.html">ArrayCache</a>
<a class="list-group-item" href="./yii-caching-cache.html">Cache</a>
<a class="list-group-item" href="./yii-caching-chaineddependency.html">ChainedDependency</a>
<a class="list-group-item" href="./yii-caching-dbcache.html">DbCache</a>
<a class="list-group-item" href="./yii-caching-dbdependency.html">DbDependency</a>
<a class="list-group-item" href="./yii-caching-dependency.html">Dependency</a>
<a class="list-group-item" href="./yii-caching-dummycache.html">DummyCache</a>
<a class="list-group-item" href="./yii-caching-expressiondependency.html">ExpressionDependency</a>
<a class="list-group-item" href="./yii-caching-filecache.html">FileCache</a>
<a class="list-group-item" href="./yii-caching-filedependency.html">FileDependency</a>
<a class="list-group-item" href="./yii-caching-memcache.html">MemCache</a>
<a class="list-group-item" href="./yii-caching-memcacheserver.html">MemCacheServer</a>
<a class="list-group-item" href="./yii-caching-tagdependency.html">TagDependency</a>
<a class="list-group-item" href="./yii-caching-wincache.html">WinCache</a>
<a class="list-group-item" href="./yii-caching-xcache.html">XCache</a>
<a class="list-group-item" href="./yii-caching-zenddatacache.html">ZendDataCache</a></div>
<a class="list-group-item" href="#navigation-3099" data-toggle="collapse" data-parent="#navigation">yii\captcha <b class="caret"></b></a><div id="navigation-3099" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-captcha-captcha.html">Captcha</a>
<a class="list-group-item" href="./yii-captcha-captchaaction.html">CaptchaAction</a>
<a class="list-group-item" href="./yii-captcha-captchaasset.html">CaptchaAsset</a>
<a class="list-group-item" href="./yii-captcha-captchavalidator.html">CaptchaValidator</a></div>
<a class="list-group-item" href="#navigation-3100" data-toggle="collapse" data-parent="#navigation">yii\console <b class="caret"></b></a><div id="navigation-3100" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-console-application.html">Application</a>
<a class="list-group-item" href="./yii-console-controller.html">Controller</a>
<a class="list-group-item" href="./yii-console-errorhandler.html">ErrorHandler</a>
<a class="list-group-item" href="./yii-console-exception.html">Exception</a>
<a class="list-group-item" href="./yii-console-markdown.html">Markdown</a>
<a class="list-group-item" href="./yii-console-request.html">Request</a>
<a class="list-group-item" href="./yii-console-response.html">Response</a></div>
<a class="list-group-item" href="#navigation-3101" data-toggle="collapse" data-parent="#navigation">yii\console\controllers <b class="caret"></b></a><div id="navigation-3101" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-console-controllers-assetcontroller.html">AssetController</a>
<a class="list-group-item" href="./yii-console-controllers-basemigratecontroller.html">BaseMigrateController</a>
<a class="list-group-item" href="./yii-console-controllers-cachecontroller.html">CacheController</a>
<a class="list-group-item" href="./yii-console-controllers-fixturecontroller.html">FixtureController</a>
<a class="list-group-item" href="./yii-console-controllers-helpcontroller.html">HelpController</a>
<a class="list-group-item" href="./yii-console-controllers-messagecontroller.html">MessageController</a>
<a class="list-group-item" href="./yii-console-controllers-migratecontroller.html">MigrateController</a>
<a class="list-group-item" href="./yii-console-controllers-servecontroller.html">ServeController</a></div>
<a class="list-group-item" href="#navigation-3102" data-toggle="collapse" data-parent="#navigation">yii\data <b class="caret"></b></a><div id="navigation-3102" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-data-activedataprovider.html">ActiveDataProvider</a>
<a class="list-group-item" href="./yii-data-arraydataprovider.html">ArrayDataProvider</a>
<a class="list-group-item" href="./yii-data-basedataprovider.html">BaseDataProvider</a>
<a class="list-group-item" href="./yii-data-dataproviderinterface.html">DataProviderInterface</a>
<a class="list-group-item" href="./yii-data-pagination.html">Pagination</a>
<a class="list-group-item" href="./yii-data-sort.html">Sort</a>
<a class="list-group-item" href="./yii-data-sqldataprovider.html">SqlDataProvider</a></div>
<a class="list-group-item" href="#navigation-3103" data-toggle="collapse" data-parent="#navigation">yii\db <b class="caret"></b></a><div id="navigation-3103" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-db-activequery.html">ActiveQuery</a>
<a class="list-group-item" href="./yii-db-activequeryinterface.html">ActiveQueryInterface</a>
<a class="list-group-item" href="./yii-db-activequerytrait.html">ActiveQueryTrait</a>
<a class="list-group-item" href="./yii-db-activerecord.html">ActiveRecord</a>
<a class="list-group-item" href="./yii-db-activerecordinterface.html">ActiveRecordInterface</a>
<a class="list-group-item" href="./yii-db-activerelationtrait.html">ActiveRelationTrait</a>
<a class="list-group-item" href="./yii-db-aftersaveevent.html">AfterSaveEvent</a>
<a class="list-group-item" href="./yii-db-baseactiverecord.html">BaseActiveRecord</a>
<a class="list-group-item" href="./yii-db-batchqueryresult.html">BatchQueryResult</a>
<a class="list-group-item" href="./yii-db-columnschema.html">ColumnSchema</a>
<a class="list-group-item" href="./yii-db-columnschemabuilder.html">ColumnSchemaBuilder</a>
<a class="list-group-item" href="./yii-db-command.html">Command</a>
<a class="list-group-item" href="./yii-db-connection.html">Connection</a>
<a class="list-group-item" href="./yii-db-datareader.html">DataReader</a>
<a class="list-group-item" href="./yii-db-exception.html">Exception</a>
<a class="list-group-item" href="./yii-db-expression.html">Expression</a>
<a class="list-group-item" href="./yii-db-integrityexception.html">IntegrityException</a>
<a class="list-group-item" href="./yii-db-migration.html">Migration</a>
<a class="list-group-item" href="./yii-db-migrationinterface.html">MigrationInterface</a>
<a class="list-group-item" href="./yii-db-query.html">Query</a>
<a class="list-group-item" href="./yii-db-querybuilder.html">QueryBuilder</a>
<a class="list-group-item" href="./yii-db-queryinterface.html">QueryInterface</a>
<a class="list-group-item" href="./yii-db-querytrait.html">QueryTrait</a>
<a class="list-group-item" href="./yii-db-schema.html">Schema</a>
<a class="list-group-item" href="./yii-db-schemabuildertrait.html">SchemaBuilderTrait</a>
<a class="list-group-item" href="./yii-db-staleobjectexception.html">StaleObjectException</a>
<a class="list-group-item" href="./yii-db-tableschema.html">TableSchema</a>
<a class="list-group-item" href="./yii-db-transaction.html">Transaction</a></div>
<a class="list-group-item" href="#navigation-3104" data-toggle="collapse" data-parent="#navigation">yii\db\cubrid <b class="caret"></b></a><div id="navigation-3104" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-db-cubrid-columnschemabuilder.html">ColumnSchemaBuilder</a>
<a class="list-group-item" href="./yii-db-cubrid-querybuilder.html">QueryBuilder</a>
<a class="list-group-item" href="./yii-db-cubrid-schema.html">Schema</a></div>
<a class="list-group-item" href="#navigation-3105" data-toggle="collapse" data-parent="#navigation">yii\db\mssql <b class="caret"></b></a><div id="navigation-3105" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-db-mssql-pdo.html">PDO</a>
<a class="list-group-item" href="./yii-db-mssql-querybuilder.html">QueryBuilder</a>
<a class="list-group-item" href="./yii-db-mssql-schema.html">Schema</a>
<a class="list-group-item" href="./yii-db-mssql-sqlsrvpdo.html">SqlsrvPDO</a>
<a class="list-group-item" href="./yii-db-mssql-tableschema.html">TableSchema</a></div>
<a class="list-group-item" href="#navigation-3106" data-toggle="collapse" data-parent="#navigation">yii\db\mysql <b class="caret"></b></a><div id="navigation-3106" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-db-mysql-columnschemabuilder.html">ColumnSchemaBuilder</a>
<a class="list-group-item" href="./yii-db-mysql-querybuilder.html">QueryBuilder</a>
<a class="list-group-item" href="./yii-db-mysql-schema.html">Schema</a></div>
<a class="list-group-item" href="#navigation-3107" data-toggle="collapse" data-parent="#navigation">yii\db\oci <b class="caret"></b></a><div id="navigation-3107" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-db-oci-columnschemabuilder.html">ColumnSchemaBuilder</a>
<a class="list-group-item" href="./yii-db-oci-querybuilder.html">QueryBuilder</a>
<a class="list-group-item" href="./yii-db-oci-schema.html">Schema</a></div>
<a class="list-group-item" href="#navigation-3108" data-toggle="collapse" data-parent="#navigation">yii\db\pgsql <b class="caret"></b></a><div id="navigation-3108" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-db-pgsql-querybuilder.html">QueryBuilder</a>
<a class="list-group-item" href="./yii-db-pgsql-schema.html">Schema</a></div>
<a class="list-group-item" href="#navigation-3109" data-toggle="collapse" data-parent="#navigation">yii\db\sqlite <b class="caret"></b></a><div id="navigation-3109" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-db-sqlite-columnschemabuilder.html">ColumnSchemaBuilder</a>
<a class="list-group-item" href="./yii-db-sqlite-querybuilder.html">QueryBuilder</a>
<a class="list-group-item" href="./yii-db-sqlite-schema.html">Schema</a></div>
<a class="list-group-item" href="#navigation-3110" data-toggle="collapse" data-parent="#navigation">yii\di <b class="caret"></b></a><div id="navigation-3110" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-di-container.html">Container</a>
<a class="list-group-item" href="./yii-di-instance.html">Instance</a>
<a class="list-group-item" href="./yii-di-notinstantiableexception.html">NotInstantiableException</a>
<a class="list-group-item" href="./yii-di-servicelocator.html">ServiceLocator</a></div>
<a class="list-group-item" href="#navigation-3111" data-toggle="collapse" data-parent="#navigation">yii\filters <b class="caret"></b></a><div id="navigation-3111" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-filters-accesscontrol.html">AccessControl</a>
<a class="list-group-item" href="./yii-filters-accessrule.html">AccessRule</a>
<a class="list-group-item" href="./yii-filters-contentnegotiator.html">ContentNegotiator</a>
<a class="list-group-item" href="./yii-filters-cors.html">Cors</a>
<a class="list-group-item" href="./yii-filters-httpcache.html">HttpCache</a>
<a class="list-group-item" href="./yii-filters-pagecache.html">PageCache</a>
<a class="list-group-item" href="./yii-filters-ratelimitinterface.html">RateLimitInterface</a>
<a class="list-group-item" href="./yii-filters-ratelimiter.html">RateLimiter</a>
<a class="list-group-item" href="./yii-filters-verbfilter.html">VerbFilter</a></div>
<a class="list-group-item" href="#navigation-3112" data-toggle="collapse" data-parent="#navigation">yii\filters\auth <b class="caret"></b></a><div id="navigation-3112" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-filters-auth-authinterface.html">AuthInterface</a>
<a class="list-group-item" href="./yii-filters-auth-authmethod.html">AuthMethod</a>
<a class="list-group-item" href="./yii-filters-auth-compositeauth.html">CompositeAuth</a>
<a class="list-group-item" href="./yii-filters-auth-httpbasicauth.html">HttpBasicAuth</a>
<a class="list-group-item" href="./yii-filters-auth-httpbearerauth.html">HttpBearerAuth</a>
<a class="list-group-item" href="./yii-filters-auth-queryparamauth.html">QueryParamAuth</a></div>
<a class="list-group-item" href="#navigation-3113" data-toggle="collapse" data-parent="#navigation">yii\grid <b class="caret"></b></a><div id="navigation-3113" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-grid-actioncolumn.html">ActionColumn</a>
<a class="list-group-item" href="./yii-grid-checkboxcolumn.html">CheckboxColumn</a>
<a class="list-group-item" href="./yii-grid-column.html">Column</a>
<a class="list-group-item" href="./yii-grid-datacolumn.html">DataColumn</a>
<a class="list-group-item" href="./yii-grid-gridview.html">GridView</a>
<a class="list-group-item" href="./yii-grid-gridviewasset.html">GridViewAsset</a>
<a class="list-group-item" href="./yii-grid-serialcolumn.html">SerialColumn</a></div>
<a class="list-group-item" href="#navigation-3114" data-toggle="collapse" data-parent="#navigation">yii\helpers <b class="caret"></b></a><div id="navigation-3114" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-helpers-arrayhelper.html">ArrayHelper</a>
<a class="list-group-item" href="./yii-helpers-basearrayhelper.html">BaseArrayHelper</a>
<a class="list-group-item" href="./yii-helpers-baseconsole.html">BaseConsole</a>
<a class="list-group-item" href="./yii-helpers-basefilehelper.html">BaseFileHelper</a>
<a class="list-group-item" href="./yii-helpers-baseformatconverter.html">BaseFormatConverter</a>
<a class="list-group-item" href="./yii-helpers-basehtml.html">BaseHtml</a>
<a class="list-group-item" href="./yii-helpers-basehtmlpurifier.html">BaseHtmlPurifier</a>
<a class="list-group-item" href="./yii-helpers-baseinflector.html">BaseInflector</a>
<a class="list-group-item" href="./yii-helpers-basejson.html">BaseJson</a>
<a class="list-group-item" href="./yii-helpers-basemarkdown.html">BaseMarkdown</a>
<a class="list-group-item" href="./yii-helpers-basestringhelper.html">BaseStringHelper</a>
<a class="list-group-item" href="./yii-helpers-baseurl.html">BaseUrl</a>
<a class="list-group-item" href="./yii-helpers-basevardumper.html">BaseVarDumper</a>
<a class="list-group-item" href="./yii-helpers-console.html">Console</a>
<a class="list-group-item" href="./yii-helpers-filehelper.html">FileHelper</a>
<a class="list-group-item" href="./yii-helpers-formatconverter.html">FormatConverter</a>
<a class="list-group-item" href="./yii-helpers-html.html">Html</a>
<a class="list-group-item" href="./yii-helpers-htmlpurifier.html">HtmlPurifier</a>
<a class="list-group-item" href="./yii-helpers-inflector.html">Inflector</a>
<a class="list-group-item" href="./yii-helpers-json.html">Json</a>
<a class="list-group-item" href="./yii-helpers-markdown.html">Markdown</a>
<a class="list-group-item" href="./yii-helpers-stringhelper.html">StringHelper</a>
<a class="list-group-item" href="./yii-helpers-url.html">Url</a>
<a class="list-group-item" href="./yii-helpers-vardumper.html">VarDumper</a></div>
<a class="list-group-item" href="#navigation-3115" data-toggle="collapse" data-parent="#navigation">yii\i18n <b class="caret"></b></a><div id="navigation-3115" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-i18n-dbmessagesource.html">DbMessageSource</a>
<a class="list-group-item" href="./yii-i18n-formatter.html">Formatter</a>
<a class="list-group-item" href="./yii-i18n-gettextfile.html">GettextFile</a>
<a class="list-group-item" href="./yii-i18n-gettextmessagesource.html">GettextMessageSource</a>
<a class="list-group-item" href="./yii-i18n-gettextmofile.html">GettextMoFile</a>
<a class="list-group-item" href="./yii-i18n-gettextpofile.html">GettextPoFile</a>
<a class="list-group-item" href="./yii-i18n-i18n.html">I18N</a>
<a class="list-group-item" href="./yii-i18n-messageformatter.html">MessageFormatter</a>
<a class="list-group-item" href="./yii-i18n-messagesource.html">MessageSource</a>
<a class="list-group-item" href="./yii-i18n-missingtranslationevent.html">MissingTranslationEvent</a>
<a class="list-group-item" href="./yii-i18n-phpmessagesource.html">PhpMessageSource</a></div>
<a class="list-group-item" href="#navigation-3116" data-toggle="collapse" data-parent="#navigation">yii\log <b class="caret"></b></a><div id="navigation-3116" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-log-dbtarget.html">DbTarget</a>
<a class="list-group-item" href="./yii-log-dispatcher.html">Dispatcher</a>
<a class="list-group-item" href="./yii-log-emailtarget.html">EmailTarget</a>
<a class="list-group-item" href="./yii-log-filetarget.html">FileTarget</a>
<a class="list-group-item" href="./yii-log-logger.html">Logger</a>
<a class="list-group-item" href="./yii-log-syslogtarget.html">SyslogTarget</a>
<a class="list-group-item" href="./yii-log-target.html">Target</a></div>
<a class="list-group-item" href="#navigation-3117" data-toggle="collapse" data-parent="#navigation">yii\mail <b class="caret"></b></a><div id="navigation-3117" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-mail-basemailer.html">BaseMailer</a>
<a class="list-group-item" href="./yii-mail-basemessage.html">BaseMessage</a>
<a class="list-group-item" href="./yii-mail-mailevent.html">MailEvent</a>
<a class="list-group-item" href="./yii-mail-mailerinterface.html">MailerInterface</a>
<a class="list-group-item" href="./yii-mail-messageinterface.html">MessageInterface</a></div>
<a class="list-group-item" href="#navigation-3118" data-toggle="collapse" data-parent="#navigation">yii\mutex <b class="caret"></b></a><div id="navigation-3118" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-mutex-dbmutex.html">DbMutex</a>
<a class="list-group-item" href="./yii-mutex-filemutex.html">FileMutex</a>
<a class="list-group-item" href="./yii-mutex-mutex.html">Mutex</a>
<a class="list-group-item" href="./yii-mutex-mysqlmutex.html">MysqlMutex</a>
<a class="list-group-item" href="./yii-mutex-pgsqlmutex.html">PgsqlMutex</a></div>
<a class="list-group-item" href="#navigation-3119" data-toggle="collapse" data-parent="#navigation">yii\rbac <b class="caret"></b></a><div id="navigation-3119" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-rbac-assignment.html">Assignment</a>
<a class="list-group-item" href="./yii-rbac-basemanager.html">BaseManager</a>
<a class="list-group-item" href="./yii-rbac-checkaccessinterface.html">CheckAccessInterface</a>
<a class="list-group-item" href="./yii-rbac-dbmanager.html">DbManager</a>
<a class="list-group-item" href="./yii-rbac-item.html">Item</a>
<a class="list-group-item" href="./yii-rbac-managerinterface.html">ManagerInterface</a>
<a class="list-group-item" href="./yii-rbac-permission.html">Permission</a>
<a class="list-group-item" href="./yii-rbac-phpmanager.html">PhpManager</a>
<a class="list-group-item" href="./yii-rbac-role.html">Role</a>
<a class="list-group-item" href="./yii-rbac-rule.html">Rule</a></div>
<a class="list-group-item" href="#navigation-3120" data-toggle="collapse" data-parent="#navigation">yii\rest <b class="caret"></b></a><div id="navigation-3120" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-rest-action.html">Action</a>
<a class="list-group-item" href="./yii-rest-activecontroller.html">ActiveController</a>
<a class="list-group-item" href="./yii-rest-controller.html">Controller</a>
<a class="list-group-item" href="./yii-rest-createaction.html">CreateAction</a>
<a class="list-group-item" href="./yii-rest-deleteaction.html">DeleteAction</a>
<a class="list-group-item" href="./yii-rest-indexaction.html">IndexAction</a>
<a class="list-group-item" href="./yii-rest-optionsaction.html">OptionsAction</a>
<a class="list-group-item" href="./yii-rest-serializer.html">Serializer</a>
<a class="list-group-item" href="./yii-rest-updateaction.html">UpdateAction</a>
<a class="list-group-item" href="./yii-rest-urlrule.html">UrlRule</a>
<a class="list-group-item" href="./yii-rest-viewaction.html">ViewAction</a></div>
<a class="list-group-item" href="#navigation-3121" data-toggle="collapse" data-parent="#navigation">yii\test <b class="caret"></b></a><div id="navigation-3121" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-test-activefixture.html">ActiveFixture</a>
<a class="list-group-item" href="./yii-test-arrayfixture.html">ArrayFixture</a>
<a class="list-group-item" href="./yii-test-baseactivefixture.html">BaseActiveFixture</a>
<a class="list-group-item" href="./yii-test-dbfixture.html">DbFixture</a>
<a class="list-group-item" href="./yii-test-fixture.html">Fixture</a>
<a class="list-group-item" href="./yii-test-fixturetrait.html">FixtureTrait</a>
<a class="list-group-item" href="./yii-test-initdbfixture.html">InitDbFixture</a></div>
<a class="list-group-item" href="#navigation-3122" data-toggle="collapse" data-parent="#navigation">yii\validators <b class="caret"></b></a><div id="navigation-3122" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-validators-booleanvalidator.html">BooleanValidator</a>
<a class="list-group-item" href="./yii-validators-comparevalidator.html">CompareValidator</a>
<a class="list-group-item" href="./yii-validators-datevalidator.html">DateValidator</a>
<a class="list-group-item" href="./yii-validators-defaultvaluevalidator.html">DefaultValueValidator</a>
<a class="list-group-item" href="./yii-validators-eachvalidator.html">EachValidator</a>
<a class="list-group-item" href="./yii-validators-emailvalidator.html">EmailValidator</a>
<a class="list-group-item" href="./yii-validators-existvalidator.html">ExistValidator</a>
<a class="list-group-item" href="./yii-validators-filevalidator.html">FileValidator</a>
<a class="list-group-item" href="./yii-validators-filtervalidator.html">FilterValidator</a>
<a class="list-group-item" href="./yii-validators-imagevalidator.html">ImageValidator</a>
<a class="list-group-item" href="./yii-validators-inlinevalidator.html">InlineValidator</a>
<a class="list-group-item" href="./yii-validators-ipvalidator.html">IpValidator</a>
<a class="list-group-item" href="./yii-validators-numbervalidator.html">NumberValidator</a>
<a class="list-group-item" href="./yii-validators-punycodeasset.html">PunycodeAsset</a>
<a class="list-group-item" href="./yii-validators-rangevalidator.html">RangeValidator</a>
<a class="list-group-item" href="./yii-validators-regularexpressionvalidator.html">RegularExpressionValidator</a>
<a class="list-group-item" href="./yii-validators-requiredvalidator.html">RequiredValidator</a>
<a class="list-group-item" href="./yii-validators-safevalidator.html">SafeValidator</a>
<a class="list-group-item" href="./yii-validators-stringvalidator.html">StringValidator</a>
<a class="list-group-item" href="./yii-validators-uniquevalidator.html">UniqueValidator</a>
<a class="list-group-item" href="./yii-validators-urlvalidator.html">UrlValidator</a>
<a class="list-group-item" href="./yii-validators-validationasset.html">ValidationAsset</a>
<a class="list-group-item" href="./yii-validators-validator.html">Validator</a></div>
<a class="list-group-item" href="#navigation-3123" data-toggle="collapse" data-parent="#navigation">yii\web <b class="caret"></b></a><div id="navigation-3123" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-web-application.html">Application</a>
<a class="list-group-item" href="./yii-web-assetbundle.html">AssetBundle</a>
<a class="list-group-item" href="./yii-web-assetconverter.html">AssetConverter</a>
<a class="list-group-item" href="./yii-web-assetconverterinterface.html">AssetConverterInterface</a>
<a class="list-group-item" href="./yii-web-assetmanager.html">AssetManager</a>
<a class="list-group-item" href="./yii-web-badrequesthttpexception.html">BadRequestHttpException</a>
<a class="list-group-item" href="./yii-web-cachesession.html">CacheSession</a>
<a class="list-group-item" href="./yii-web-compositeurlrule.html">CompositeUrlRule</a>
<a class="list-group-item" href="./yii-web-conflicthttpexception.html">ConflictHttpException</a>
<a class="list-group-item" href="./yii-web-controller.html">Controller</a>
<a class="list-group-item" href="./yii-web-cookie.html">Cookie</a>
<a class="list-group-item" href="./yii-web-cookiecollection.html">CookieCollection</a>
<a class="list-group-item" href="./yii-web-dbsession.html">DbSession</a>
<a class="list-group-item" href="./yii-web-erroraction.html">ErrorAction</a>
<a class="list-group-item" href="./yii-web-errorhandler.html">ErrorHandler</a>
<a class="list-group-item" href="./yii-web-forbiddenhttpexception.html">ForbiddenHttpException</a>
<a class="list-group-item" href="./yii-web-gonehttpexception.html">GoneHttpException</a>
<a class="list-group-item" href="./yii-web-groupurlrule.html">GroupUrlRule</a>
<a class="list-group-item" href="./yii-web-headercollection.html">HeaderCollection</a>
<a class="list-group-item" href="./yii-web-htmlresponseformatter.html">HtmlResponseFormatter</a>
<a class="list-group-item" href="./yii-web-httpexception.html">HttpException</a>
<a class="list-group-item" href="./yii-web-identityinterface.html">IdentityInterface</a>
<a class="list-group-item" href="./yii-web-jqueryasset.html">JqueryAsset</a>
<a class="list-group-item" href="./yii-web-jsexpression.html">JsExpression</a>
<a class="list-group-item" href="./yii-web-jsonparser.html">JsonParser</a>
<a class="list-group-item" href="./yii-web-jsonresponseformatter.html">JsonResponseFormatter</a>
<a class="list-group-item" href="./yii-web-link.html">Link</a>
<a class="list-group-item" href="./yii-web-linkable.html">Linkable</a>
<a class="list-group-item" href="./yii-web-methodnotallowedhttpexception.html">MethodNotAllowedHttpException</a>
<a class="list-group-item" href="./yii-web-multifieldsession.html">MultiFieldSession</a>
<a class="list-group-item" href="./yii-web-notacceptablehttpexception.html">NotAcceptableHttpException</a>
<a class="list-group-item" href="./yii-web-notfoundhttpexception.html">NotFoundHttpException</a>
<a class="list-group-item" href="./yii-web-request.html">Request</a>
<a class="list-group-item" href="./yii-web-requestparserinterface.html">RequestParserInterface</a>
<a class="list-group-item" href="./yii-web-response.html">Response</a>
<a class="list-group-item" href="./yii-web-responseformatterinterface.html">ResponseFormatterInterface</a>
<a class="list-group-item" href="./yii-web-servererrorhttpexception.html">ServerErrorHttpException</a>
<a class="list-group-item" href="./yii-web-session.html">Session</a>
<a class="list-group-item" href="./yii-web-sessioniterator.html">SessionIterator</a>
<a class="list-group-item" href="./yii-web-toomanyrequestshttpexception.html">TooManyRequestsHttpException</a>
<a class="list-group-item" href="./yii-web-unauthorizedhttpexception.html">UnauthorizedHttpException</a>
<a class="list-group-item" href="./yii-web-unprocessableentityhttpexception.html">UnprocessableEntityHttpException</a>
<a class="list-group-item" href="./yii-web-unsupportedmediatypehttpexception.html">UnsupportedMediaTypeHttpException</a>
<a class="list-group-item" href="./yii-web-uploadedfile.html">UploadedFile</a>
<a class="list-group-item" href="./yii-web-urlmanager.html">UrlManager</a>
<a class="list-group-item" href="./yii-web-urlrule.html">UrlRule</a>
<a class="list-group-item" href="./yii-web-urlruleinterface.html">UrlRuleInterface</a>
<a class="list-group-item" href="./yii-web-user.html">User</a>
<a class="list-group-item" href="./yii-web-userevent.html">UserEvent</a>
<a class="list-group-item" href="./yii-web-view.html">View</a>
<a class="list-group-item" href="./yii-web-viewaction.html">ViewAction</a>
<a class="list-group-item" href="./yii-web-xmlresponseformatter.html">XmlResponseFormatter</a>
<a class="list-group-item" href="./yii-web-yiiasset.html">YiiAsset</a></div>
<a class="list-group-item" href="#navigation-3124" data-toggle="collapse" data-parent="#navigation">yii\widgets <b class="caret"></b></a><div id="navigation-3124" class="submenu panel-collapse collapse"><a class="list-group-item" href="./yii-widgets-activefield.html">ActiveField</a>
<a class="list-group-item" href="./yii-widgets-activeform.html">ActiveForm</a>
<a class="list-group-item" href="./yii-widgets-activeformasset.html">ActiveFormAsset</a>
<a class="list-group-item" href="./yii-widgets-baselistview.html">BaseListView</a>
<a class="list-group-item" href="./yii-widgets-block.html">Block</a>
<a class="list-group-item" href="./yii-widgets-breadcrumbs.html">Breadcrumbs</a>
<a class="list-group-item" href="./yii-widgets-contentdecorator.html">ContentDecorator</a>
<a class="list-group-item" href="./yii-widgets-detailview.html">DetailView</a>
<a class="list-group-item" href="./yii-widgets-fragmentcache.html">FragmentCache</a>
<a class="list-group-item" href="./yii-widgets-inputwidget.html">InputWidget</a>
<a class="list-group-item" href="./yii-widgets-linkpager.html">LinkPager</a>
<a class="list-group-item" href="./yii-widgets-linksorter.html">LinkSorter</a>
<a class="list-group-item" href="./yii-widgets-listview.html">ListView</a>
<a class="list-group-item" href="./yii-widgets-maskedinput.html">MaskedInput</a>
<a class="list-group-item" href="./yii-widgets-maskedinputasset.html">MaskedInputAsset</a>
<a class="list-group-item" href="./yii-widgets-menu.html">Menu</a>
<a class="list-group-item" href="./yii-widgets-pjax.html">Pjax</a>
<a class="list-group-item" href="./yii-widgets-pjaxasset.html">PjaxAsset</a>
<a class="list-group-item" href="./yii-widgets-spaceless.html">Spaceless</a></div></div>    </div>
    <div class="col-md-9 api-content" role="main">
        <h1>Class yii\base\Component</h1>
<div class="top-nav">
    <a href="index.html">All Classes</a>
            | <a href="#properties">Properties</a>
                | <a href="#methods">Methods</a>
            </div>

<table class="summaryTable docClass table table-bordered">
    <colgroup>
        <col class="col-name" />
        <col class="col-value" />
    </colgroup>
            <tr><th>Inheritance</th><td><a href="yii-base-component.html">yii\base\Component</a> &raquo;
<a href="yii-base-object.html">yii\base\Object</a></td></tr>
                <tr><th>Implements</th><td><a href="yii-base-configurable.html">yii\base\Configurable</a></td></tr>
                        <tr><th>Subclasses</th><td><a href="yii-apidoc-commands-apicontroller.html">yii\apidoc\commands\ApiController</a>, <a href="yii-apidoc-commands-guidecontroller.html">yii\apidoc\commands\GuideController</a>, <a href="yii-apidoc-components-basecontroller.html">yii\apidoc\components\BaseController</a>, <a href="yii-apidoc-models-context.html">yii\apidoc\models\Context</a>, <a href="yii-apidoc-renderers-apirenderer.html">yii\apidoc\renderers\ApiRenderer</a>, <a href="yii-apidoc-renderers-baserenderer.html">yii\apidoc\renderers\BaseRenderer</a>, <a href="yii-apidoc-renderers-guiderenderer.html">yii\apidoc\renderers\GuideRenderer</a>, <a href="yii-apidoc-templates-bootstrap-apirenderer.html">yii\apidoc\templates\bootstrap\ApiRenderer</a>, <a href="yii-apidoc-templates-bootstrap-guiderenderer.html">yii\apidoc\templates\bootstrap\GuideRenderer</a>, <a href="yii-apidoc-templates-bootstrap-sidenavwidget.html">yii\apidoc\templates\bootstrap\SideNavWidget</a>, <a href="yii-apidoc-templates-html-apirenderer.html">yii\apidoc\templates\html\ApiRenderer</a>, <a href="yii-apidoc-templates-html-guiderenderer.html">yii\apidoc\templates\html\GuideRenderer</a>, <a href="yii-apidoc-templates-json-apirenderer.html">yii\apidoc\templates\json\ApiRenderer</a>, <a href="yii-apidoc-templates-online-apirenderer.html">yii\apidoc\templates\online\ApiRenderer</a>, <a href="yii-apidoc-templates-pdf-guiderenderer.html">yii\apidoc\templates\pdf\GuideRenderer</a>, <a href="yii-authclient-authaction.html">yii\authclient\AuthAction</a>, <a href="yii-authclient-baseclient.html">yii\authclient\BaseClient</a>, <a href="yii-authclient-baseoauth.html">yii\authclient\BaseOAuth</a>, <a href="yii-authclient-collection.html">yii\authclient\Collection</a>, <a href="yii-authclient-oauth1.html">yii\authclient\OAuth1</a>, <a href="yii-authclient-oauth2.html">yii\authclient\OAuth2</a>, <a href="yii-authclient-openid.html">yii\authclient\OpenId</a>, <a href="yii-authclient-qq.html">yii\authclient\QQ</a>, <a href="yii-authclient-wechat.html">yii\authclient\WeChat</a>, <a href="yii-authclient-weibo.html">yii\authclient\Weibo</a>, <a href="yii-authclient-clients-facebook.html">yii\authclient\clients\Facebook</a>, <a href="yii-authclient-clients-github.html">yii\authclient\clients\GitHub</a>, <a href="yii-authclient-clients-googlehybrid.html">yii\authclient\clients\GoogleHybrid</a>, <a href="yii-authclient-clients-googleoauth.html">yii\authclient\clients\GoogleOAuth</a>, <a href="yii-authclient-clients-googleopenid.html">yii\authclient\clients\GoogleOpenId</a>, <a href="yii-authclient-clients-linkedin.html">yii\authclient\clients\LinkedIn</a>, <a href="yii-authclient-clients-live.html">yii\authclient\clients\Live</a>, <a href="yii-authclient-clients-twitter.html">yii\authclient\clients\Twitter</a>, <a href="yii-authclient-clients-vkontakte.html">yii\authclient\clients\VKontakte</a>, <a href="yii-authclient-clients-yandexoauth.html">yii\authclient\clients\YandexOAuth</a>, <a href="yii-authclient-clients-yandexopenid.html">yii\authclient\clients\YandexOpenId</a>, <a href="yii-authclient-widgets-authchoice.html">yii\authclient\widgets\AuthChoice</a>, <a href="yii-authclient-widgets-authchoiceitem.html">yii\authclient\widgets\AuthChoiceItem</a>, <a href="yii-authclient-widgets-googleplusbutton.html">yii\authclient\widgets\GooglePlusButton</a>, <a href="yii-base-action.html">yii\base\Action</a>, <a href="yii-base-application.html">yii\base\Application</a>, <a href="yii-base-controller.html">yii\base\Controller</a>, <a href="yii-base-dynamicmodel.html">yii\base\DynamicModel</a>, <a href="yii-base-errorhandler.html">yii\base\ErrorHandler</a>, <a href="yii-base-inlineaction.html">yii\base\InlineAction</a>, <a href="yii-base-model.html">yii\base\Model</a>, <a href="yii-base-module.html">yii\base\Module</a>, <a href="yii-base-request.html">yii\base\Request</a>, <a href="yii-base-response.html">yii\base\Response</a>, <a href="yii-base-security.html">yii\base\Security</a>, <a href="yii-base-theme.html">yii\base\Theme</a>, <a href="yii-base-view.html">yii\base\View</a>, <a href="yii-base-viewrenderer.html">yii\base\ViewRenderer</a>, <a href="yii-base-widget.html">yii\base\Widget</a>, <a href="yii-bootstrap-activefield.html">yii\bootstrap\ActiveField</a>, <a href="yii-bootstrap-activeform.html">yii\bootstrap\ActiveForm</a>, <a href="yii-bootstrap-alert.html">yii\bootstrap\Alert</a>, <a href="yii-bootstrap-button.html">yii\bootstrap\Button</a>, <a href="yii-bootstrap-buttondropdown.html">yii\bootstrap\ButtonDropdown</a>, <a href="yii-bootstrap-buttongroup.html">yii\bootstrap\ButtonGroup</a>, <a href="yii-bootstrap-carousel.html">yii\bootstrap\Carousel</a>, <a href="yii-bootstrap-collapse.html">yii\bootstrap\Collapse</a>, <a href="yii-bootstrap-dropdown.html">yii\bootstrap\Dropdown</a>, <a href="yii-bootstrap-inputwidget.html">yii\bootstrap\InputWidget</a>, <a href="yii-bootstrap-modal.html">yii\bootstrap\Modal</a>, <a href="yii-bootstrap-nav.html">yii\bootstrap\Nav</a>, <a href="yii-bootstrap-navbar.html">yii\bootstrap\NavBar</a>, <a href="yii-bootstrap-progress.html">yii\bootstrap\Progress</a>, <a href="yii-bootstrap-tabs.html">yii\bootstrap\Tabs</a>, <a href="yii-bootstrap-togglebuttongroup.html">yii\bootstrap\ToggleButtonGroup</a>, <a href="yii-bootstrap-widget.html">yii\bootstrap\Widget</a>, <a href="yii-caching-apccache.html">yii\caching\ApcCache</a>, <a href="yii-caching-arraycache.html">yii\caching\ArrayCache</a>, <a href="yii-caching-cache.html">yii\caching\Cache</a>, <a href="yii-caching-dbcache.html">yii\caching\DbCache</a>, <a href="yii-caching-dummycache.html">yii\caching\DummyCache</a>, <a href="yii-caching-filecache.html">yii\caching\FileCache</a>, <a href="yii-caching-memcache.html">yii\caching\MemCache</a>, <a href="yii-caching-wincache.html">yii\caching\WinCache</a>, <a href="yii-caching-xcache.html">yii\caching\XCache</a>, <a href="yii-caching-zenddatacache.html">yii\caching\ZendDataCache</a>, <a href="yii-captcha-captcha.html">yii\captcha\Captcha</a>, <a href="yii-captcha-captchaaction.html">yii\captcha\CaptchaAction</a>, <a href="yii-captcha-captchavalidator.html">yii\captcha\CaptchaValidator</a>, <a href="yii-codeception-basepage.html">yii\codeception\BasePage</a>, <a href="yii-console-application.html">yii\console\Application</a>, <a href="yii-console-controller.html">yii\console\Controller</a>, <a href="yii-console-errorhandler.html">yii\console\ErrorHandler</a>, <a href="yii-console-request.html">yii\console\Request</a>, <a href="yii-console-response.html">yii\console\Response</a>, <a href="yii-console-controllers-assetcontroller.html">yii\console\controllers\AssetController</a>, <a href="yii-console-controllers-basemigratecontroller.html">yii\console\controllers\BaseMigrateController</a>, <a href="yii-console-controllers-cachecontroller.html">yii\console\controllers\CacheController</a>, <a href="yii-console-controllers-fixturecontroller.html">yii\console\controllers\FixtureController</a>, <a href="yii-console-controllers-helpcontroller.html">yii\console\controllers\HelpController</a>, <a href="yii-console-controllers-messagecontroller.html">yii\console\controllers\MessageController</a>, <a href="yii-console-controllers-migratecontroller.html">yii\console\controllers\MigrateController</a>, <a href="yii-console-controllers-servecontroller.html">yii\console\controllers\ServeController</a>, <a href="yii-data-activedataprovider.html">yii\data\ActiveDataProvider</a>, <a href="yii-data-arraydataprovider.html">yii\data\ArrayDataProvider</a>, <a href="yii-data-basedataprovider.html">yii\data\BaseDataProvider</a>, <a href="yii-data-sqldataprovider.html">yii\data\SqlDataProvider</a>, <a href="yii-db-activequery.html">yii\db\ActiveQuery</a>, <a href="yii-db-activerecord.html">yii\db\ActiveRecord</a>, <a href="yii-db-baseactiverecord.html">yii\db\BaseActiveRecord</a>, <a href="yii-db-command.html">yii\db\Command</a>, <a href="yii-db-connection.html">yii\db\Connection</a>, <a href="yii-db-migration.html">yii\db\Migration</a>, <a href="yii-db-query.html">yii\db\Query</a>, <a href="yii-debug-logtarget.html">yii\debug\LogTarget</a>, <a href="yii-debug-module.html">yii\debug\Module</a>, <a href="yii-debug-panel.html">yii\debug\Panel</a>, <a href="yii-debug-actions-db-explainaction.html">yii\debug\actions\db\ExplainAction</a>, <a href="yii-debug-components-search-filter.html">yii\debug\components\search\Filter</a>, <a href="yii-debug-components-search-matchers-base.html">yii\debug\components\search\matchers\Base</a>, <a href="yii-debug-components-search-matchers-greaterthan.html">yii\debug\components\search\matchers\GreaterThan</a>, <a href="yii-debug-components-search-matchers-lowerthan.html">yii\debug\components\search\matchers\LowerThan</a>, <a href="yii-debug-components-search-matchers-sameas.html">yii\debug\components\search\matchers\SameAs</a>, <a href="yii-debug-controllers-defaultcontroller.html">yii\debug\controllers\DefaultController</a>, <a href="yii-debug-models-search-base.html">yii\debug\models\search\Base</a>, <a href="yii-debug-models-search-db.html">yii\debug\models\search\Db</a>, <a href="yii-debug-models-search-debug.html">yii\debug\models\search\Debug</a>, <a href="yii-debug-models-search-log.html">yii\debug\models\search\Log</a>, <a href="yii-debug-models-search-mail.html">yii\debug\models\search\Mail</a>, <a href="yii-debug-models-search-profile.html">yii\debug\models\search\Profile</a>, <a href="yii-debug-panels-assetpanel.html">yii\debug\panels\AssetPanel</a>, <a href="yii-debug-panels-configpanel.html">yii\debug\panels\ConfigPanel</a>, <a href="yii-debug-panels-dbpanel.html">yii\debug\panels\DbPanel</a>, <a href="yii-debug-panels-logpanel.html">yii\debug\panels\LogPanel</a>, <a href="yii-debug-panels-mailpanel.html">yii\debug\panels\MailPanel</a>, <a href="yii-debug-panels-profilingpanel.html">yii\debug\panels\ProfilingPanel</a>, <a href="yii-debug-panels-requestpanel.html">yii\debug\panels\RequestPanel</a>, <a href="yii-di-container.html">yii\di\Container</a>, <a href="yii-di-servicelocator.html">yii\di\ServiceLocator</a>, <a href="yii-elasticsearch-activedataprovider.html">yii\elasticsearch\ActiveDataProvider</a>, <a href="yii-elasticsearch-activefixture.html">yii\elasticsearch\ActiveFixture</a>, <a href="yii-elasticsearch-activequery.html">yii\elasticsearch\ActiveQuery</a>, <a href="yii-elasticsearch-activerecord.html">yii\elasticsearch\ActiveRecord</a>, <a href="yii-elasticsearch-bulkcommand.html">yii\elasticsearch\BulkCommand</a>, <a href="yii-elasticsearch-command.html">yii\elasticsearch\Command</a>, <a href="yii-elasticsearch-connection.html">yii\elasticsearch\Connection</a>, <a href="yii-elasticsearch-debugaction.html">yii\elasticsearch\DebugAction</a>, <a href="yii-elasticsearch-debugpanel.html">yii\elasticsearch\DebugPanel</a>, <a href="yii-elasticsearch-query.html">yii\elasticsearch\Query</a>, <a href="yii-faker-fixturecontroller.html">yii\faker\FixtureController</a>, <a href="yii-filters-accessrule.html">yii\filters\AccessRule</a>, <a href="yii-gii-generator.html">yii\gii\Generator</a>, <a href="yii-gii-module.html">yii\gii\Module</a>, <a href="yii-gii-components-activefield.html">yii\gii\components\ActiveField</a>, <a href="yii-gii-console-generateaction.html">yii\gii\console\GenerateAction</a>, <a href="yii-gii-console-generatecontroller.html">yii\gii\console\GenerateController</a>, <a href="yii-gii-controllers-defaultcontroller.html">yii\gii\controllers\DefaultController</a>, <a href="yii-gii-generators-controller-generator.html">yii\gii\generators\controller\Generator</a>, <a href="yii-gii-generators-crud-generator.html">yii\gii\generators\crud\Generator</a>, <a href="yii-gii-generators-extension-generator.html">yii\gii\generators\extension\Generator</a>, <a href="yii-gii-generators-form-generator.html">yii\gii\generators\form\Generator</a>, <a href="yii-gii-generators-model-generator.html">yii\gii\generators\model\Generator</a>, <a href="yii-gii-generators-module-generator.html">yii\gii\generators\module\Generator</a>, <a href="yii-grid-gridview.html">yii\grid\GridView</a>, <a href="yii-i18n-dbmessagesource.html">yii\i18n\DbMessageSource</a>, <a href="yii-i18n-formatter.html">yii\i18n\Formatter</a>, <a href="yii-i18n-gettextfile.html">yii\i18n\GettextFile</a>, <a href="yii-i18n-gettextmessagesource.html">yii\i18n\GettextMessageSource</a>, <a href="yii-i18n-gettextmofile.html">yii\i18n\GettextMoFile</a>, <a href="yii-i18n-gettextpofile.html">yii\i18n\GettextPoFile</a>, <a href="yii-i18n-i18n.html">yii\i18n\I18N</a>, <a href="yii-i18n-messageformatter.html">yii\i18n\MessageFormatter</a>, <a href="yii-i18n-messagesource.html">yii\i18n\MessageSource</a>, <a href="yii-i18n-phpmessagesource.html">yii\i18n\PhpMessageSource</a>, <a href="yii-jui-accordion.html">yii\jui\Accordion</a>, <a href="yii-jui-autocomplete.html">yii\jui\AutoComplete</a>, <a href="yii-jui-datepicker.html">yii\jui\DatePicker</a>, <a href="yii-jui-dialog.html">yii\jui\Dialog</a>, <a href="yii-jui-draggable.html">yii\jui\Draggable</a>, <a href="yii-jui-droppable.html">yii\jui\Droppable</a>, <a href="yii-jui-inputwidget.html">yii\jui\InputWidget</a>, <a href="yii-jui-menu.html">yii\jui\Menu</a>, <a href="yii-jui-progressbar.html">yii\jui\ProgressBar</a>, <a href="yii-jui-resizable.html">yii\jui\Resizable</a>, <a href="yii-jui-selectable.html">yii\jui\Selectable</a>, <a href="yii-jui-slider.html">yii\jui\Slider</a>, <a href="yii-jui-sliderinput.html">yii\jui\SliderInput</a>, <a href="yii-jui-sortable.html">yii\jui\Sortable</a>, <a href="yii-jui-spinner.html">yii\jui\Spinner</a>, <a href="yii-jui-tabs.html">yii\jui\Tabs</a>, <a href="yii-jui-widget.html">yii\jui\Widget</a>, <a href="yii-log-dbtarget.html">yii\log\DbTarget</a>, <a href="yii-log-dispatcher.html">yii\log\Dispatcher</a>, <a href="yii-log-emailtarget.html">yii\log\EmailTarget</a>, <a href="yii-log-filetarget.html">yii\log\FileTarget</a>, <a href="yii-log-logger.html">yii\log\Logger</a>, <a href="yii-log-syslogtarget.html">yii\log\SyslogTarget</a>, <a href="yii-log-target.html">yii\log\Target</a>, <a href="yii-mail-basemailer.html">yii\mail\BaseMailer</a>, <a href="yii-mongodb-activefixture.html">yii\mongodb\ActiveFixture</a>, <a href="yii-mongodb-activequery.html">yii\mongodb\ActiveQuery</a>, <a href="yii-mongodb-activerecord.html">yii\mongodb\ActiveRecord</a>, <a href="yii-mongodb-cache.html">yii\mongodb\Cache</a>, <a href="yii-mongodb-connection.html">yii\mongodb\Connection</a>, <a href="yii-mongodb-migration.html">yii\mongodb\Migration</a>, <a href="yii-mongodb-query.html">yii\mongodb\Query</a>, <a href="yii-mongodb-session.html">yii\mongodb\Session</a>, <a href="yii-mongodb-console-controllers-migratecontroller.html">yii\mongodb\console\controllers\MigrateController</a>, <a href="yii-mongodb-debug-explainaction.html">yii\mongodb\debug\ExplainAction</a>, <a href="yii-mongodb-debug-mongodbpanel.html">yii\mongodb\debug\MongoDbPanel</a>, <a href="yii-mongodb-file-activequery.html">yii\mongodb\file\ActiveQuery</a>, <a href="yii-mongodb-file-activerecord.html">yii\mongodb\file\ActiveRecord</a>, <a href="yii-mongodb-file-query.html">yii\mongodb\file\Query</a>, <a href="yii-mongodb-gii-model-generator.html">yii\mongodb\gii\model\Generator</a>, <a href="yii-mongodb-i18n-mongodbmessagesource.html">yii\mongodb\i18n\MongoDbMessageSource</a>, <a href="yii-mongodb-log-mongodbtarget.html">yii\mongodb\log\MongoDbTarget</a>, <a href="yii-mongodb-rbac-mongodbmanager.html">yii\mongodb\rbac\MongoDbManager</a>, <a href="yii-mongodb-validators-mongodatevalidator.html">yii\mongodb\validators\MongoDateValidator</a>, <a href="yii-mongodb-validators-mongoidvalidator.html">yii\mongodb\validators\MongoIdValidator</a>, <a href="yii-mutex-dbmutex.html">yii\mutex\DbMutex</a>, <a href="yii-mutex-filemutex.html">yii\mutex\FileMutex</a>, <a href="yii-mutex-mutex.html">yii\mutex\Mutex</a>, <a href="yii-mutex-mysqlmutex.html">yii\mutex\MysqlMutex</a>, <a href="yii-mutex-pgsqlmutex.html">yii\mutex\PgsqlMutex</a>, <a href="yii-rbac-basemanager.html">yii\rbac\BaseManager</a>, <a href="yii-rbac-dbmanager.html">yii\rbac\DbManager</a>, <a href="yii-rbac-phpmanager.html">yii\rbac\PhpManager</a>, <a href="yii-redis-activequery.html">yii\redis\ActiveQuery</a>, <a href="yii-redis-activerecord.html">yii\redis\ActiveRecord</a>, <a href="yii-redis-cache.html">yii\redis\Cache</a>, <a href="yii-redis-connection.html">yii\redis\Connection</a>, <a href="yii-redis-session.html">yii\redis\Session</a>, <a href="yii-rest-action.html">yii\rest\Action</a>, <a href="yii-rest-activecontroller.html">yii\rest\ActiveController</a>, <a href="yii-rest-controller.html">yii\rest\Controller</a>, <a href="yii-rest-createaction.html">yii\rest\CreateAction</a>, <a href="yii-rest-deleteaction.html">yii\rest\DeleteAction</a>, <a href="yii-rest-indexaction.html">yii\rest\IndexAction</a>, <a href="yii-rest-optionsaction.html">yii\rest\OptionsAction</a>, <a href="yii-rest-serializer.html">yii\rest\Serializer</a>, <a href="yii-rest-updateaction.html">yii\rest\UpdateAction</a>, <a href="yii-rest-viewaction.html">yii\rest\ViewAction</a>, <a href="yii-smarty-viewrenderer.html">yii\smarty\ViewRenderer</a>, <a href="yii-sphinx-activedataprovider.html">yii\sphinx\ActiveDataProvider</a>, <a href="yii-sphinx-activefixture.html">yii\sphinx\ActiveFixture</a>, <a href="yii-sphinx-activequery.html">yii\sphinx\ActiveQuery</a>, <a href="yii-sphinx-activerecord.html">yii\sphinx\ActiveRecord</a>, <a href="yii-sphinx-command.html">yii\sphinx\Command</a>, <a href="yii-sphinx-connection.html">yii\sphinx\Connection</a>, <a href="yii-sphinx-query.html">yii\sphinx\Query</a>, <a href="yii-sphinx-gii-model-generator.html">yii\sphinx\gii\model\Generator</a>, <a href="yii-swiftmailer-mailer.html">yii\swiftmailer\Mailer</a>, <a href="yii-test-activefixture.html">yii\test\ActiveFixture</a>, <a href="yii-test-arrayfixture.html">yii\test\ArrayFixture</a>, <a href="yii-test-baseactivefixture.html">yii\test\BaseActiveFixture</a>, <a href="yii-test-dbfixture.html">yii\test\DbFixture</a>, <a href="yii-test-fixture.html">yii\test\Fixture</a>, <a href="yii-test-initdbfixture.html">yii\test\InitDbFixture</a>, <a href="yii-twig-viewrenderer.html">yii\twig\ViewRenderer</a>, <a href="yii-validators-booleanvalidator.html">yii\validators\BooleanValidator</a>, <a href="yii-validators-comparevalidator.html">yii\validators\CompareValidator</a>, <a href="yii-validators-datevalidator.html">yii\validators\DateValidator</a>, <a href="yii-validators-defaultvaluevalidator.html">yii\validators\DefaultValueValidator</a>, <a href="yii-validators-eachvalidator.html">yii\validators\EachValidator</a>, <a href="yii-validators-emailvalidator.html">yii\validators\EmailValidator</a>, <a href="yii-validators-existvalidator.html">yii\validators\ExistValidator</a>, <a href="yii-validators-filevalidator.html">yii\validators\FileValidator</a>, <a href="yii-validators-filtervalidator.html">yii\validators\FilterValidator</a>, <a href="yii-validators-imagevalidator.html">yii\validators\ImageValidator</a>, <a href="yii-validators-inlinevalidator.html">yii\validators\InlineValidator</a>, <a href="yii-validators-ipvalidator.html">yii\validators\IpValidator</a>, <a href="yii-validators-numbervalidator.html">yii\validators\NumberValidator</a>, <a href="yii-validators-rangevalidator.html">yii\validators\RangeValidator</a>, <a href="yii-validators-regularexpressionvalidator.html">yii\validators\RegularExpressionValidator</a>, <a href="yii-validators-requiredvalidator.html">yii\validators\RequiredValidator</a>, <a href="yii-validators-safevalidator.html">yii\validators\SafeValidator</a>, <a href="yii-validators-stringvalidator.html">yii\validators\StringValidator</a>, <a href="yii-validators-uniquevalidator.html">yii\validators\UniqueValidator</a>, <a href="yii-validators-urlvalidator.html">yii\validators\UrlValidator</a>, <a href="yii-validators-validator.html">yii\validators\Validator</a>, <a href="yii-web-application.html">yii\web\Application</a>, <a href="yii-web-assetconverter.html">yii\web\AssetConverter</a>, <a href="yii-web-assetmanager.html">yii\web\AssetManager</a>, <a href="yii-web-cachesession.html">yii\web\CacheSession</a>, <a href="yii-web-controller.html">yii\web\Controller</a>, <a href="yii-web-dbsession.html">yii\web\DbSession</a>, <a href="yii-web-erroraction.html">yii\web\ErrorAction</a>, <a href="yii-web-errorhandler.html">yii\web\ErrorHandler</a>, <a href="yii-web-htmlresponseformatter.html">yii\web\HtmlResponseFormatter</a>, <a href="yii-web-jsonresponseformatter.html">yii\web\JsonResponseFormatter</a>, <a href="yii-web-multifieldsession.html">yii\web\MultiFieldSession</a>, <a href="yii-web-request.html">yii\web\Request</a>, <a href="yii-web-response.html">yii\web\Response</a>, <a href="yii-web-session.html">yii\web\Session</a>, <a href="yii-web-urlmanager.html">yii\web\UrlManager</a>, <a href="yii-web-user.html">yii\web\User</a>, <a href="yii-web-view.html">yii\web\View</a>, <a href="yii-web-viewaction.html">yii\web\ViewAction</a>, <a href="yii-web-xmlresponseformatter.html">yii\web\XmlResponseFormatter</a>, <a href="yii-widgets-activefield.html">yii\widgets\ActiveField</a>, <a href="yii-widgets-activeform.html">yii\widgets\ActiveForm</a>, <a href="yii-widgets-baselistview.html">yii\widgets\BaseListView</a>, <a href="yii-widgets-block.html">yii\widgets\Block</a>, <a href="yii-widgets-breadcrumbs.html">yii\widgets\Breadcrumbs</a>, <a href="yii-widgets-contentdecorator.html">yii\widgets\ContentDecorator</a>, <a href="yii-widgets-detailview.html">yii\widgets\DetailView</a>, <a href="yii-widgets-fragmentcache.html">yii\widgets\FragmentCache</a>, <a href="yii-widgets-inputwidget.html">yii\widgets\InputWidget</a>, <a href="yii-widgets-linkpager.html">yii\widgets\LinkPager</a>, <a href="yii-widgets-linksorter.html">yii\widgets\LinkSorter</a>, <a href="yii-widgets-listview.html">yii\widgets\ListView</a>, <a href="yii-widgets-maskedinput.html">yii\widgets\MaskedInput</a>, <a href="yii-widgets-menu.html">yii\widgets\Menu</a>, <a href="yii-widgets-pjax.html">yii\widgets\Pjax</a>, <a href="yii-widgets-spaceless.html">yii\widgets\Spaceless</a></td></tr>
                        <tr><th>Available since version</th><td>2.0</td></tr>
                    <tr>
          <th>Source Code</th>
          <td><a href="https://github.com/yiisoft/yii2/blob/master/framework/base/Component.php">https://github.com/yiisoft/yii2/blob/master/framework/base/Component.php</a></td>
        </tr>
    </table>

<div class="class-description">
    <p><strong>Component is the base class that implements the <em>property</em>, <em>event</em> and <em>behavior</em> features.</strong></p>
    <p>Component provides the <em>event</em> and <em>behavior</em> features, in addition to the <em>property</em> feature which is implemented in
its parent class <span class="broken-link">Object</span>.</p>
<p>Event is a way to "inject" custom code into existing code at certain places. For example, a comment object can trigger
an "add" event when the user adds a comment. We can write custom code and attach it to this event so that when the event
is triggered (i.e. comment will be added), our custom code will be executed.</p>
<p>An event is identified by a name that should be unique within the class it is defined at. Event names are <em>case-sensitive</em>.</p>
<p>One or multiple PHP callbacks, called <em>event handlers</em>, can be attached to an event. You can call <a href="yii-base-component.html#trigger()-detail">trigger()</a> to
raise an event. When an event is raised, the event handlers will be invoked automatically in the order they were
attached.</p>
<p>To attach an event handler to an event, call <a href="yii-base-component.html#on()-detail">on()</a>:</p>
<pre><code class="hljs php language-php"><span class="hljs-variable">$post</span>-&gt;on(<span class="hljs-string">'update'</span>, <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-params">(<span class="hljs-variable">$event</span>)</span> </span>{
    <span class="hljs-comment">// send email notification</span>
});
</code></pre>
<p>In the above, an anonymous function is attached to the "update" event of the post. You may attach
the following types of event handlers:</p>
<ul>
<li>anonymous function: <code>function ($event) { ... }</code></li>
<li>object method: <code>[$object, 'handleAdd']</code></li>
<li>static class method: <code>['Page', 'handleAdd']</code></li>
<li>global function: <code>'handleAdd'</code></li>
</ul>
<p>The signature of an event handler should be like the following:</p>
<pre><code class="hljs php language-php"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">foo</span><span class="hljs-params">(<span class="hljs-variable">$event</span>)</span>
</span></code></pre>
<p>where <code>$event</code> is an <a href="yii-base-event.html">yii\base\Event</a> object which includes parameters associated with the event.</p>
<p>You can also attach a handler to an event when configuring a component with a configuration array.
The syntax is like the following:</p>
<pre><code class="hljs php language-php">[
    <span class="hljs-string">'on add'</span> =&gt; <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-params">(<span class="hljs-variable">$event</span>)</span> </span>{ ... }
]
</code></pre>
<p>where <code>on add</code> stands for attaching an event to the <code>add</code> event.</p>
<p>Sometimes, you may want to associate extra data with an event handler when you attach it to an event
and then access it when the handler is invoked. You may do so by</p>
<pre><code class="hljs php language-php"><span class="hljs-variable">$post</span>-&gt;on(<span class="hljs-string">'update'</span>, <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-params">(<span class="hljs-variable">$event</span>)</span> </span>{
    <span class="hljs-comment">// the data can be accessed via $event-&gt;data</span>
}, <span class="hljs-variable">$data</span>);
</code></pre>
<p>A behavior is an instance of <a href="yii-base-behavior.html">yii\base\Behavior</a> or its child class. A component can be attached with one or multiple
behaviors. When a behavior is attached to a component, its public properties and methods can be accessed via the
component directly, as if the component owns those properties and methods.</p>
<p>To attach a behavior to a component, declare it in <a href="yii-base-component.html#behaviors()-detail">behaviors()</a>, or explicitly call <a href="yii-base-component.html#attachBehavior()-detail">attachBehavior()</a>. Behaviors
declared in <a href="yii-base-component.html#behaviors()-detail">behaviors()</a> are automatically attached to the corresponding component.</p>
<p>One can also attach a behavior to a component when configuring it with a configuration array. The syntax is like the
following:</p>
<pre><code class="hljs php language-php">[
    <span class="hljs-string">'as tree'</span> =&gt; [
        <span class="hljs-string">'class'</span> =&gt; <span class="hljs-string">'Tree'</span>,
    ],
]
</code></pre>
<p>where <code>as tree</code> stands for attaching a behavior named <code>tree</code>, and the array will be passed to <a href="yii-baseyii.html#createObject()-detail">Yii::createObject()</a>
to create the behavior object.</p>

    </div>

<a id="properties"></a>

<div class="summary doc-property">
<h2>Public Properties</h2>

<p><a href="#" class="toggle">Hide inherited properties</a></p>

<table class="summary-table table table-striped table-bordered table-hover">
<colgroup>
    <col class="col-property" />
    <col class="col-type" />
    <col class="col-description" />
    <col class="col-defined" />
</colgroup>
<tr>
  <th>Property</th><th>Type</th><th>Description</th><th>Defined By</th>
</tr>
        <tr id="$behaviors">
        <td><a href="yii-base-component.html#$behaviors-detail">$behaviors</a></td>
        <td><a href="yii-base-behavior.html">yii\base\Behavior</a>[]</td>
        <td>List of behaviors attached to this component</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
    </table>
</div>

<a id="methods"></a>

<div class="summary doc-method">
<h2>Public Methods</h2>

<p><a href="#" class="toggle">Hide inherited methods</a></p>

<table class="summary-table table table-striped table-bordered table-hover">
<colgroup>
    <col class="col-method" />
    <col class="col-description" />
    <col class="col-defined" />
</colgroup>
<tr>
  <th>Method</th><th>Description</th><th>Defined By</th>
</tr>
        <tr id="__call()">
        <td><a href="yii-base-component.html#__call()-detail">__call()</a></td>
        <td>Calls the named method which is not a class method.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="__clone()">
        <td><a href="yii-base-component.html#__clone()-detail">__clone()</a></td>
        <td>This method is called after the object is created by cloning an existing one.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="__construct()">
        <td><a href="yii-base-object.html#__construct()-detail">__construct()</a></td>
        <td>Constructor.</td>
        <td><a href="yii-base-object.html">yii\base\Object</a></td>
    </tr>
            <tr id="__get()">
        <td><a href="yii-base-component.html#__get()-detail">__get()</a></td>
        <td>Returns the value of a component property.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="__isset()">
        <td><a href="yii-base-component.html#__isset()-detail">__isset()</a></td>
        <td>Checks if a property is set, i.e. defined and not null.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="__set()">
        <td><a href="yii-base-component.html#__set()-detail">__set()</a></td>
        <td>Sets the value of a component property.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="__unset()">
        <td><a href="yii-base-component.html#__unset()-detail">__unset()</a></td>
        <td>Sets a component property to be null.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="attachBehavior()">
        <td><a href="yii-base-component.html#attachBehavior()-detail">attachBehavior()</a></td>
        <td>Attaches a behavior to this component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="attachBehaviors()">
        <td><a href="yii-base-component.html#attachBehaviors()-detail">attachBehaviors()</a></td>
        <td>Attaches a list of behaviors to the component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="behaviors()">
        <td><a href="yii-base-component.html#behaviors()-detail">behaviors()</a></td>
        <td>Returns a list of behaviors that this component should behave as.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="canGetProperty()">
        <td><a href="yii-base-component.html#canGetProperty()-detail">canGetProperty()</a></td>
        <td>Returns a value indicating whether a property can be read.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="canSetProperty()">
        <td><a href="yii-base-component.html#canSetProperty()-detail">canSetProperty()</a></td>
        <td>Returns a value indicating whether a property can be set.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="className()">
        <td><a href="yii-base-object.html#className()-detail">className()</a></td>
        <td>Returns the fully qualified name of this class.</td>
        <td><a href="yii-base-object.html">yii\base\Object</a></td>
    </tr>
            <tr id="detachBehavior()">
        <td><a href="yii-base-component.html#detachBehavior()-detail">detachBehavior()</a></td>
        <td>Detaches a behavior from the component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="detachBehaviors()">
        <td><a href="yii-base-component.html#detachBehaviors()-detail">detachBehaviors()</a></td>
        <td>Detaches all behaviors from the component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="ensureBehaviors()">
        <td><a href="yii-base-component.html#ensureBehaviors()-detail">ensureBehaviors()</a></td>
        <td>Makes sure that the behaviors declared in <a href="yii-base-component.html#behaviors()-detail">behaviors()</a> are attached to this component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="getBehavior()">
        <td><a href="yii-base-component.html#getBehavior()-detail">getBehavior()</a></td>
        <td>Returns the named behavior object.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="getBehaviors()">
        <td><a href="yii-base-component.html#getBehaviors()-detail">getBehaviors()</a></td>
        <td>Returns all behaviors attached to this component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="hasEventHandlers()">
        <td><a href="yii-base-component.html#hasEventHandlers()-detail">hasEventHandlers()</a></td>
        <td>Returns a value indicating whether there is any handler attached to the named event.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="hasMethod()">
        <td><a href="yii-base-component.html#hasMethod()-detail">hasMethod()</a></td>
        <td>Returns a value indicating whether a method is defined.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="hasProperty()">
        <td><a href="yii-base-component.html#hasProperty()-detail">hasProperty()</a></td>
        <td>Returns a value indicating whether a property is defined for this component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr class="inherited" id="init()">
        <td><a href="yii-base-object.html#init()-detail">init()</a></td>
        <td>Initializes the object.</td>
        <td><a href="yii-base-object.html">yii\base\Object</a></td>
    </tr>
            <tr id="off()">
        <td><a href="yii-base-component.html#off()-detail">off()</a></td>
        <td>Detaches an existing event handler from this component.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="on()">
        <td><a href="yii-base-component.html#on()-detail">on()</a></td>
        <td>Attaches an event handler to an event.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
            <tr id="trigger()">
        <td><a href="yii-base-component.html#trigger()-detail">trigger()</a></td>
        <td>Triggers an event.</td>
        <td><a href="yii-base-component.html">yii\base\Component</a></td>
    </tr>
    </table>
</div>

<a id="events"></a>

<a id="constants"></a>

<h2>Property Details</h2>

<div class="property-doc">

    <div class="detail-header h3" id="$behaviors-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-base-component.html#$behaviors-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/base/Component.php" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/base/Component.php" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        $behaviors        <span class="detail-header-tag small">
            public                         <em>read-only</em>                         property
                    </span>
    </div>

    <div class="doc-description">
        <p>List of behaviors attached to this component</p>

            </div>

    <div class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="yii-base-behavior.html">yii\base\Behavior</a>[]</span> <strong><a href="yii-base-component.html#getBehaviors()-detail">getBehaviors</a></strong> ( )</div>

</div>
<h2>Method Details</h2>

<div class="method-doc">

    <div class="detail-header h3" id="__call()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-base-component.html#__call()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/base/Component.php#L277" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/base/Component.php#L277" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        __call()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Calls the named method which is not a class method.</strong></p>

        <p>This method will check if any attached behavior has
the named method and will execute it if available.</p>
<p>Do not call this method directly as it is a PHP magic method that
will be implicitly called when an unknown method is being invoked.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type">mixed</span> <strong><a href="yii-base-component.html#__call()-detail">__call</a></strong> ( <span style="color: #0000BB">$name</span>, <span style="color: #0000BB">$params</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$name</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The method name</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$params</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>Method parameters</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col">mixed</td>
                  <td class="param-desc-col"><p>The method return value</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-unknownmethodexception.html">yii\base\UnknownMethodException</a></td>
                  <td class="param-desc-col"><p>when calling unknown method</p>
</td>
                </tr>
                        </table>

<!--	-->

    <div class="detail-header h3" id="__clone()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-base-component.html#__clone()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/base/Component.php#L292" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/base/Component.php#L292" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        __clone()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>This method is called after the object is created by cloning an existing one.</strong></p>

        <p>It removes all behaviors because they are attached to the old object.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type">void</span> <strong><a href="yii-base-component.html#__clone()-detail">__clone</a></strong> ( )</td></tr>
            </table>

<!--	-->

    <div class="detail-header h3" id="__get()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-base-component.html#__get()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/base/Component.php#L125" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/base/Component.php#L125" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        __get()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Returns the value of a component property.</strong></p>

        <p>This method will check in the following order and act accordingly:</p>
<ul>
<li>a property defined by a getter: return the getter result</li>
<li>a property of a behavior: return the behavior property value</li>
</ul>
<p>Do not call this method directly as it is a PHP magic method that
will be implicitly called when executing <code>$value = $component-&gt;property;</code>.</p>

        <p>See also <a href="yii-base-component.html#__set()-detail">__set()</a>.</p>    </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type">mixed</span> <strong><a href="yii-base-component.html#__get()-detail">__get</a></strong> ( <span style="color: #0000BB">$name</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$name</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The property name</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col">mixed</td>
                  <td class="param-desc-col"><p>The property value or the value of a behavior's property</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-unknownpropertyexception.html">yii\base\UnknownPropertyException</a></td>
                  <td class="param-desc-col"><p>if the property is not defined</p>
</td>
                </tr>
                            <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-invalidcallexception.html">yii\base\InvalidCallException</a></td>
                  <td class="param-desc-col"><p>if the property is write-only.</p>
</td>
                </tr>
                        </table>

<!--	-->

    <div class="detail-header h3" id="__isset()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-base-component.html#__isset()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/base/Component.php#L215" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/base/Component.php#L215" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        __isset()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Checks if a property is set, i.e. defined and not null.</strong></p>

        <p>This method will check in the following order and act accordingly:</p>
<ul>
<li>a property defined by a setter: return whether the property is set</li>
<li>a property of a behavior: return whether the property is set</li>
<li>return <code>false</code> for non existing properties</li>
</ul>
<p>Do not call this method directly as it is a PHP magic method that
will be implicitly called when executing <code>isset($component-&gt;property)</code>.</p>

        <p>See also <a href="http://php.net/manual/en/function.isset.php">http://php.net/manual/en/function.isset.php</a>.</p>    </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.boolean">boolean</a></span> <strong><a href="yii-base-component.html#__isset()-detail">__isset</a></strong> ( <span style="color: #0000BB">$name</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$name</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The property name or the event name</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether the named property is set</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="__set()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-base-component.html#__set()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/base/Component.php#L164" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/base/Component.php#L164" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        __set()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Sets the value of a component property.</strong></p>

        <p>This method will check in the following order and act accordingly:</p>
<ul>
<li>a property defined by a setter: set the property value</li>
<li>an event in the format of "on xyz": attach the handler to the event "xyz"</li>
<li>a behavior in the format of "as xyz": attach the behavior named as "xyz"</li>
<li>a property of a behavior: set the behavior property value</li>
</ul>
<p>Do not call this method directly as it is a PHP magic method that
will be implicitly called when executing <code>$component-&gt;property = $value;</code>.</p>

        <p>See also <a href="yii-base-component.html#__get()-detail">__get()</a>.</p>    </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type">void</span> <strong><a href="yii-base-component.html#__set()-detail">__set</a></strong> ( <span style="color: #0000BB">$name</span>, <span style="color: #0000BB">$value</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$name</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The property name or the event name</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$value</span></td>
                  <td class="param-type-col">mixed</td>
                  <td class="param-desc-col"><p>The property value</p>
</td>
                </tr>
                                                    <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-unknownpropertyexception.html">yii\base\UnknownPropertyException</a></td>
                  <td class="param-desc-col"><p>if the property is not defined</p>
</td>
                </tr>
                            <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-invalidcallexception.html">yii\base\InvalidCallException</a></td>
                  <td class="param-desc-col"><p>if the property is read-only.</p>
</td>
                </tr>
                        </table>

<!--	-->

    <div class="detail-header h3" id="__unset()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-base-component.html#__unset()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/base/Component.php#L245" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/base/Component.php#L245" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        __unset()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Sets a component property to be null.</strong></p>

        <p>This method will check in the following order and act accordingly:</p>
<ul>
<li>a property defined by a setter: set the property value to be null</li>
<li>a property of a behavior: set the property value to be null</li>
</ul>
<p>Do not call this method directly as it is a PHP magic method that
will be implicitly called when executing <code>unset($component-&gt;property)</code>.</p>

        <p>See also <a href="http://php.net/manual/en/function.unset.php">http://php.net/manual/en/function.unset.php</a>.</p>    </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type">void</span> <strong><a href="yii-base-component.html#__unset()-detail">__unset</a></strong> ( <span style="color: #0000BB">$name</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$name</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The property name</p>
</td>
                </tr>
                                                    <tr>
                  <th class="param-name-col">throws</th>
                  <td class="param-type-col"><a href="yii-base-invalidcallexception.html">yii\base\InvalidCallException</a></td>
                  <td class="param-desc-col"><p>if the property is read only.</p>
</td>
                </tr>
                        </table>

<!--	-->

    <div class="detail-header h3" id="attachBehavior()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-base-component.html#attachBehavior()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/base/Component.php#L588" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/base/Component.php#L588" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        attachBehavior()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Attaches a behavior to this component.</strong></p>

        <p>This method will create the behavior object based on the given
configuration. After that, the behavior object will be attached to
this component by calling the <a href="yii-base-behavior.html#attach()-detail">yii\base\Behavior::attach()</a> method.</p>

        <p>See also <a href="yii-base-component.html#detachBehavior()-detail">detachBehavior()</a>.</p>    </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="yii-base-behavior.html">yii\base\Behavior</a></span> <strong><a href="yii-base-component.html#attachBehavior()-detail">attachBehavior</a></strong> ( <span style="color: #0000BB">$name</span>, <span style="color: #0000BB">$behavior</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$name</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The name of the behavior.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$behavior</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a>|<a href="http://www.php.net/language.types.array">array</a>|<a href="yii-base-behavior.html">yii\base\Behavior</a></td>
                  <td class="param-desc-col"><p>The behavior configuration. This can be one of the following:</p>
<ul>
<li>a <a href="yii-base-behavior.html">yii\base\Behavior</a> object</li>
<li>a string specifying the behavior class</li>
<li>an object configuration array that will be passed to <a href="yii-baseyii.html#createObject()-detail">Yii::createObject()</a> to create the behavior object.</li>
</ul>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="yii-base-behavior.html">yii\base\Behavior</a></td>
                  <td class="param-desc-col"><p>The behavior object</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="attachBehaviors()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-base-component.html#attachBehaviors()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/base/Component.php#L601" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/base/Component.php#L601" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        attachBehaviors()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Attaches a list of behaviors to the component.</strong></p>

        <p>Each behavior is indexed by its name and should be a <a href="yii-base-behavior.html">yii\base\Behavior</a> object,
a string specifying the behavior class, or an configuration array for creating the behavior.</p>

        <p>See also <a href="yii-base-component.html#attachBehavior()-detail">attachBehavior()</a>.</p>    </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type">void</span> <strong><a href="yii-base-component.html#attachBehaviors()-detail">attachBehaviors</a></strong> ( <span style="color: #0000BB">$behaviors</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$behaviors</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>List of behaviors to be attached to the component</p>
</td>
                </tr>
                                                </table>

<!--	-->

    <div class="detail-header h3" id="behaviors()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-base-component.html#behaviors()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/base/Component.php#L431" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/base/Component.php#L431" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        behaviors()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Returns a list of behaviors that this component should behave as.</strong></p>

        <p>Child classes may override this method to specify the behaviors they want to behave as.</p>
<p>The return value of this method should be an array of behavior objects or configurations
indexed by behavior names. A behavior configuration can be either a string specifying
the behavior class or an array of the following structure:</p>
<pre><code class="hljs php language-php"><span class="hljs-string">'behaviorName'</span> =&gt; [
    <span class="hljs-string">'class'</span> =&gt; <span class="hljs-string">'BehaviorClass'</span>,
    <span class="hljs-string">'property1'</span> =&gt; <span class="hljs-string">'value1'</span>,
    <span class="hljs-string">'property2'</span> =&gt; <span class="hljs-string">'value2'</span>,
]
</code></pre>
<p>Note that a behavior class must extend from <a href="yii-base-behavior.html">yii\base\Behavior</a>. Behavior names can be strings
or integers. If the former, they uniquely identify the behaviors. If the latter, the corresponding
behaviors are anonymous and their properties and methods will NOT be made available via the component
(however, the behaviors can still respond to the component's events).</p>
<p>Behaviors declared in this method will be attached to the component automatically (on demand).</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.array">array</a></span> <strong><a href="yii-base-component.html#behaviors()-detail">behaviors</a></strong> ( )</td></tr>
                                                <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.array">array</a></td>
                  <td class="param-desc-col"><p>The behavior configurations.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="canGetProperty()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-base-component.html#canGetProperty()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/base/Component.php#L334" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/base/Component.php#L334" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        canGetProperty()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Returns a value indicating whether a property can be read.</strong></p>

        <p>A property can be read if:</p>
<ul>
<li>the class has a getter method associated with the specified name
(in this case, property name is case-insensitive);</li>
<li>the class has a member variable with the specified name (when <code>$checkVars</code> is true);</li>
<li>an attached behavior has a readable property of the given name (when <code>$checkBehaviors</code> is true).</li>
</ul>

        <p>See also <a href="yii-base-component.html#canSetProperty()-detail">canSetProperty()</a>.</p>    </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.boolean">boolean</a></span> <strong><a href="yii-base-component.html#canGetProperty()-detail">canGetProperty</a></strong> ( <span style="color: #0000BB">$name</span>, <span style="color: #0000BB">$checkVars&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">true</span>, <span style="color: #0000BB">$checkBehaviors&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">true</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$name</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The property name</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$checkVars</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether to treat member variables as properties</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$checkBehaviors</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether to treat behaviors' properties as properties of this component</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether the property can be read</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="canSetProperty()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-base-component.html#canSetProperty()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/base/Component.php#L364" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/base/Component.php#L364" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        canSetProperty()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Returns a value indicating whether a property can be set.</strong></p>

        <p>A property can be written if:</p>
<ul>
<li>the class has a setter method associated with the specified name
(in this case, property name is case-insensitive);</li>
<li>the class has a member variable with the specified name (when <code>$checkVars</code> is true);</li>
<li>an attached behavior has a writable property of the given name (when <code>$checkBehaviors</code> is true).</li>
</ul>

        <p>See also <a href="yii-base-component.html#canGetProperty()-detail">canGetProperty()</a>.</p>    </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.boolean">boolean</a></span> <strong><a href="yii-base-component.html#canSetProperty()-detail">canSetProperty</a></strong> ( <span style="color: #0000BB">$name</span>, <span style="color: #0000BB">$checkVars&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">true</span>, <span style="color: #0000BB">$checkBehaviors&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">true</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$name</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The property name</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$checkVars</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether to treat member variables as properties</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$checkBehaviors</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether to treat behaviors' properties as properties of this component</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether the property can be written</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="detachBehavior()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-base-component.html#detachBehavior()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/base/Component.php#L615" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/base/Component.php#L615" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        detachBehavior()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Detaches a behavior from the component.</strong></p>

        <p>The behavior's <a href="yii-base-behavior.html#detach()-detail">yii\base\Behavior::detach()</a> method will be invoked.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.null">null</a>|<a href="yii-base-behavior.html">yii\base\Behavior</a></span> <strong><a href="yii-base-component.html#detachBehavior()-detail">detachBehavior</a></strong> ( <span style="color: #0000BB">$name</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$name</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The behavior's name.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.null">null</a>|<a href="yii-base-behavior.html">yii\base\Behavior</a></td>
                  <td class="param-desc-col"><p>The detached behavior. Null if the behavior does not exist.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="detachBehaviors()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-base-component.html#detachBehaviors()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/base/Component.php#L631" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/base/Component.php#L631" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        detachBehaviors()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Detaches all behaviors from the component.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type">void</span> <strong><a href="yii-base-component.html#detachBehaviors()-detail">detachBehaviors</a></strong> ( )</td></tr>
            </table>

<!--	-->

    <div class="detail-header h3" id="ensureBehaviors()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-base-component.html#ensureBehaviors()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/base/Component.php#L642" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/base/Component.php#L642" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        ensureBehaviors()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Makes sure that the behaviors declared in <a href="yii-base-component.html#behaviors()-detail">behaviors()</a> are attached to this component.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type">void</span> <strong><a href="yii-base-component.html#ensureBehaviors()-detail">ensureBehaviors</a></strong> ( )</td></tr>
            </table>

<!--	-->

    <div class="detail-header h3" id="getBehavior()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-base-component.html#getBehavior()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/base/Component.php#L557" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/base/Component.php#L557" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        getBehavior()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Returns the named behavior object.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.null">null</a>|<a href="yii-base-behavior.html">yii\base\Behavior</a></span> <strong><a href="yii-base-component.html#getBehavior()-detail">getBehavior</a></strong> ( <span style="color: #0000BB">$name</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$name</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The behavior name</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.null">null</a>|<a href="yii-base-behavior.html">yii\base\Behavior</a></td>
                  <td class="param-desc-col"><p>The behavior object, or null if the behavior does not exist</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="getBehaviors()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-base-component.html#getBehaviors()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/base/Component.php#L567" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/base/Component.php#L567" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        getBehaviors()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Returns all behaviors attached to this component.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="yii-base-behavior.html">yii\base\Behavior</a>[]</span> <strong><a href="yii-base-component.html#getBehaviors()-detail">getBehaviors</a></strong> ( )</td></tr>
                                                <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="yii-base-behavior.html">yii\base\Behavior</a>[]</td>
                  <td class="param-desc-col"><p>List of behaviors attached to this component</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="hasEventHandlers()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-base-component.html#hasEventHandlers()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/base/Component.php#L441" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/base/Component.php#L441" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        hasEventHandlers()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Returns a value indicating whether there is any handler attached to the named event.</strong></p>

        
            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.boolean">boolean</a></span> <strong><a href="yii-base-component.html#hasEventHandlers()-detail">hasEventHandlers</a></strong> ( <span style="color: #0000BB">$name</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$name</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The event name</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether there is any handler attached to the event.</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="hasMethod()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-base-component.html#hasMethod()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/base/Component.php#L390" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/base/Component.php#L390" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        hasMethod()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Returns a value indicating whether a method is defined.</strong></p>

        <p>A method is defined if:</p>
<ul>
<li>the class has a method with the specified name</li>
<li>an attached behavior has a method with the given name (when <code>$checkBehaviors</code> is true).</li>
</ul>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.boolean">boolean</a></span> <strong><a href="yii-base-component.html#hasMethod()-detail">hasMethod</a></strong> ( <span style="color: #0000BB">$name</span>, <span style="color: #0000BB">$checkBehaviors&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">true</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$name</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The property name</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$checkBehaviors</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether to treat behaviors' methods as methods of this component</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether the property is defined</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="hasProperty()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-base-component.html#hasProperty()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/base/Component.php#L314" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/base/Component.php#L314" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        hasProperty()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Returns a value indicating whether a property is defined for this component.</strong></p>

        <p>A property is defined if:</p>
<ul>
<li>the class has a getter or setter method associated with the specified name
(in this case, property name is case-insensitive);</li>
<li>the class has a member variable with the specified name (when <code>$checkVars</code> is true);</li>
<li>an attached behavior has a property of the given name (when <code>$checkBehaviors</code> is true).</li>
</ul>

        <p>See also:</p><ul><li><a href="yii-base-component.html#canGetProperty()-detail">canGetProperty()</a></li><li><a href="yii-base-component.html#canSetProperty()-detail">canSetProperty()</a></li></ul>    </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.boolean">boolean</a></span> <strong><a href="yii-base-component.html#hasProperty()-detail">hasProperty</a></strong> ( <span style="color: #0000BB">$name</span>, <span style="color: #0000BB">$checkVars&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">true</span>, <span style="color: #0000BB">$checkBehaviors&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">true</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$name</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The property name</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$checkVars</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether to treat member variables as properties</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$checkBehaviors</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether to treat behaviors' properties as properties of this component</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether the property is defined</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="off()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-base-component.html#off()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/base/Component.php#L496" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/base/Component.php#L496" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        off()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Detaches an existing event handler from this component.</strong></p>

        <p>This method is the opposite of <a href="yii-base-component.html#on()-detail">on()</a>.</p>

        <p>See also <a href="yii-base-component.html#on()-detail">on()</a>.</p>    </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type"><a href="http://www.php.net/language.types.boolean">boolean</a></span> <strong><a href="yii-base-component.html#off()-detail">off</a></strong> ( <span style="color: #0000BB">$name</span>, <span style="color: #0000BB">$handler&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$name</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>Event name</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$handler</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.callable">callable</a></td>
                  <td class="param-desc-col"><p>The event handler to be removed.
If it is null, all handlers attached to the named event will be removed.</p>
</td>
                </tr>
                                        <tr>
                  <th class="param-name-col">return</th>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>If a handler is found and detached</p>
</td>
                </tr>
                                    </table>

<!--	-->

    <div class="detail-header h3" id="on()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-base-component.html#on()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/base/Component.php#L477" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/base/Component.php#L477" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        on()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Attaches an event handler to an event.</strong></p>

        <p>The event handler must be a valid PHP callback. The following are
some examples:</p>
<pre><code class="hljs php"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-params">(<span class="hljs-variable">$event</span>)</span> </span>{ ... }         <span class="hljs-comment">// anonymous function</span>
[<span class="hljs-variable">$object</span>, <span class="hljs-string">'handleClick'</span>]          <span class="hljs-comment">// $object-&gt;handleClick()</span>
[<span class="hljs-string">'Page'</span>, <span class="hljs-string">'handleClick'</span>]           <span class="hljs-comment">// Page::handleClick()</span>
<span class="hljs-string">'handleClick'</span>                     <span class="hljs-comment">// global function handleClick()</span>
</code></pre>
<p>The event handler must be defined with the following signature,</p>
<pre><code class="hljs php"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-params">(<span class="hljs-variable">$event</span>)</span>
</span></code></pre>
<p>where <code>$event</code> is an <a href="yii-base-event.html">yii\base\Event</a> object which includes parameters associated with the event.</p>

        <p>See also <a href="yii-base-component.html#off()-detail">off()</a>.</p>    </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type">void</span> <strong><a href="yii-base-component.html#on()-detail">on</a></strong> ( <span style="color: #0000BB">$name</span>, <span style="color: #0000BB">$handler</span>, <span style="color: #0000BB">$data&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span>, <span style="color: #0000BB">$append&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">true</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$name</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The event name</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$handler</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.callable">callable</a></td>
                  <td class="param-desc-col"><p>The event handler</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$data</span></td>
                  <td class="param-type-col">mixed</td>
                  <td class="param-desc-col"><p>The data to be passed to the event handler when the event is triggered.
When the event handler is invoked, this data can be accessed via <a href="yii-base-event.html#$data-detail">yii\base\Event::$data</a>.</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$append</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.boolean">boolean</a></td>
                  <td class="param-desc-col"><p>Whether to append new event handler to the end of the existing
handler list. If false, the new handler will be inserted at the beginning of the existing
handler list.</p>
</td>
                </tr>
                                                </table>

<!--	-->

    <div class="detail-header h3" id="trigger()-detail">
        <a href="#" class="tool-link" title="go to top"><span class="glyphicon glyphicon-arrow-up"></span></a>
        <a class="tool-link hash" href="yii-base-component.html#trigger()-detail" title="direct link to this method"><span class="glyphicon icon-hash"></span></a>
                    <a href="https://github.com/yiisoft/yii2/edit/master/framework/base/Component.php#L527" class="tool-link" title="edit on github"><span class="glyphicon glyphicon-pencil"></span></a>
            <a href="https://github.com/yiisoft/yii2/blob/master/framework/base/Component.php#L527" class="tool-link" title="view source on github"><span class="glyphicon glyphicon-eye-open"></span></a>
        
        trigger()
        <span class="detail-header-tag small">
            public                                    method
                    </span>
    </div>

    <div class="doc-description">
        <p><strong>Triggers an event.</strong></p>

        <p>This method represents the happening of an event. It invokes
all attached handlers for the event including class-level handlers.</p>

            </div>

    <table class="detail-table table table-striped table-bordered table-hover">
        <tr><td colspan="3" class="signature"><span class="signature-defs">public</span> <span class="signature-type">void</span> <strong><a href="yii-base-component.html#trigger()-detail">trigger</a></strong> ( <span style="color: #0000BB">$name</span>, <span class="signature-type"><a href="yii-base-event.html">yii\base\Event</a></span> <span style="color: #0000BB">$event&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span> )</td></tr>
                                    <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$name</span></td>
                  <td class="param-type-col"><a href="http://www.php.net/language.types.string">string</a></td>
                  <td class="param-desc-col"><p>The event name</p>
</td>
                </tr>
                            <tr>
                  <td class="param-name-col"><span style="color: #0000BB">$event</span></td>
                  <td class="param-type-col"><a href="yii-base-event.html">yii\base\Event</a></td>
                  <td class="param-desc-col"><p>The event parameter. If not set, a default <a href="yii-base-event.html">yii\base\Event</a> object will be created.</p>
</td>
                </tr>
                                                </table>

<!--	-->
</div>
        </div>
</div>

<script type="text/javascript">
    /*<![CDATA[*/
    $("a.toggle").on('click', function () {
        var $this = $(this);
        if ($this.hasClass('properties-hidden')) {
            $this.text($this.text().replace(/Show/,'Hide'));
            $this.parents(".summary").find(".inherited").show();
            $this.removeClass('properties-hidden');
        } else {
            $this.text($this.text().replace(/Hide/,'Show'));
            $this.parents(".summary").find(".inherited").hide();
            $this.addClass('properties-hidden');
        }

        return false;
    });
    /*
     $(".sourceCode a.show").toggle(function () {
     $(this).text($(this).text().replace(/show/,'hide'));
     $(this).parents(".sourceCode").find("div.code").show();
     },function () {
     $(this).text($(this).text().replace(/hide/,'show'));
     $(this).parents(".sourceCode").find("div.code").hide();
     });
     $("a.sourceLink").click(function () {
     $(this).attr('target','_blank');
     });
     */
    /*]]>*/
</script>


</div>

<footer class="footer">
        <p class="pull-right"><small>Page generated on Sat, 09 Jul 2016 12:15:39 +0000</small></p>
    Powered by <a href="http://www.yiiframework.com/" rel="external">Yii Framework</a></footer>

<script type="text/javascript">jQuery(document).ready(function () {
    var shiftWindow = function () { scrollBy(0, -50) };
    if (location.hash) setTimeout(shiftWindow, 1);
    window.addEventListener("hashchange", shiftWindow);
var element = document.createElement("script");
element.src = "./jssearch.index.js";
document.body.appendChild(element);

var searchBox = $('#searchbox');

// search when typing in search field
searchBox.on("keyup", function(event) {
    var query = $(this).val();

    if (query == '' || event.which == 27) {
        $('#search-resultbox').hide();
        return;
    } else if (event.which == 13) {
        var selectedLink = $('#search-resultbox a.selected');
        if (selectedLink.length != 0) {
            document.location = selectedLink.attr('href');
            return;
        }
    } else if (event.which == 38 || event.which == 40) {
        $('#search-resultbox').show();

        var selected = $('#search-resultbox a.selected');
        if (selected.length == 0) {
            $('#search-results').find('a').first().addClass('selected');
        } else {
            var next;
            if (event.which == 40) {
                next = selected.parent().next().find('a').first();
            } else {
                next = selected.parent().prev().find('a').first();
            }
            if (next.length != 0) {
                var resultbox = $('#search-results');
                var position = next.position();

//              TODO scrolling is buggy and jumps around
//                resultbox.scrollTop(Math.floor(position.top));
//                console.log(position.top);

                selected.removeClass('selected');
                next.addClass('selected');
            }
        }

        return;
    }
    $('#search-resultbox').show();
    $('#search-results').html('<li><span class="no-results">No results</span></li>');

    var result = jssearch.search(query);

    if (result.length > 0) {
        var i = 0;
        var resHtml = '';

        for (var key in result) {
            if (i++ > 20) {
                break;
            }
            resHtml = resHtml +
            '<li><a href="' + result[key].file.u.substr(3) +'"><span class="title">' + result[key].file.t + '</span>' +
            '<span class="description">' + result[key].file.d + '</span></a></li>';
        }
        $('#search-results').html(resHtml);
    }
});

// hide the search results on ESC
$(document).on("keyup", function(event) { if (event.which == 27) { $('#search-resultbox').hide(); } });
// hide search results on click to document
$(document).bind('click', function (e) { $('#search-resultbox').hide(); });
// except the following:
searchBox.bind('click', function(e) { e.stopPropagation(); });
$('#search-resultbox').bind('click', function(e) { e.stopPropagation(); });

});</script></body>
</html>
